# 一元二次方程求根
# -x^2-2x+3=0
import math

a = -1
b = -2
c = 3
# (-b+(b**2-4*a*c)**(1/2))/(2*a)
print((-b + math.sqrt(b ** 2 - 4 * a * c))/(2 * a))
print((-b - math.sqrt(b ** 2 - 4 * a * c))/(2 * a))
